package com.bfly.core.exception;

import com.bfly.core.enums.SysError;

/**
 * 未登录异常
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/12/11 9:16
 */
public class UnLoginException extends RuntimeException {

    private int code;

    public UnLoginException() {
        super("未授权!");
        this.code = SysError.UNAUTHORIZED.getCode();
    }

    public int getCode() {
        return code;
    }
}
